package com.retallife.user.service.SportAdvice.Impl;

import com.retallife.user.dao.SportAdvice.SportAdviceMapper;
import com.retallife.user.pojo.SportAdvice.SportAdviceVo;
import com.retallife.user.service.SportAdvice.SportAdviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SportAdviceServiceImpl implements SportAdviceService {

    @Autowired
    SportAdviceMapper sportAdviceMapper;

    /**
     * 查询所有的运动建议
     * @return 是否查询成功
     */
    public List<SportAdviceVo> FindAllSportAdvice() {
        return sportAdviceMapper.FindAllSportAdvice();
    }

    /**
     * 根据分类查询的运动建议
     * @return 是否查询成功
     */
    public List<SportAdviceVo> FindClassfySportAdvice(String sportAdviceClassify) {
        return sportAdviceMapper.FindClassfySportAdvice(sportAdviceClassify);
    }
}
